<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>变量输出</title>
</head>
<body>
<p>val:{$val}</p>
<p>一维数组 name:{$array1.name}</p>
<p>一维数组 name:{$array1['name']}</p>
<p>二维数组 name:{$array2[0]['name']}</p>
<p>标准对象 name:{$obj->name}</p>
</body>
</html>